package cn.yuxiaoyuan.constants;


//常量维护
public class Constants {

    //手机号正则表达式
    public static final String CHINA_PHONE_REGEX =  "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";

    //编码
    public static final String UTF_8 = "UTF-8";

    public class MQ{
        public static final String TOPIC_ORDER2DRIVER = "TOPIC_ORDER2DRIVER";
    }

    //司机服务
    public class Driver {

        public static final int TYPE_DRIVER = 0;
        public static final int TYPE_CUSTOMER = 1;
    }
    //远程调用
    public class Remote {
        //服务名
        public static final String SERVICE_UAA = "it-fccar-service-uaa";

        public static final String PREFIX_LOGIN_REMOTE = "/login/remote";
    }


    public class Order{
//        0等待接单，1已接单，2司机已到达，3开始代驾，4结束代驾，5.司机确认费用，6未付款，7已付款，8订单已结束，9顾客撤单，10司机撤单，11事故关闭，12其他
        public static final int STATUS_WAIT_ACCEPT = 0;
        public static final int STATUS_ACCEPT = 1;
        public static final int STATUS_DRIVER_ARRIVE = 2;
        public static final int STATUS_START_DRIVE = 3;
        public static final int STATUS_END_DRIVE = 4;
        public static final int STATUS_DRIVER_CONFIRM_FEE = 5;
        public static final int STATUS_WAIT_PAY = 6;
        public static final int STATUS_PAY = 7;
        public static final int STATUS_END = 8;
        public static final int STATUS_CUSTOMER_CANCEL = 9;
        public static final int STATUS_DRIVER_CANCEL = 10;
        public static final int STATUS_ACCIDENT_CLOSE = 11;
        public static final int STATUS_OTHER = 12;
    }
}
